#ifndef SEARCHLINE_H_INCLUDED
#define SEARCHLINE_H_INCLUDED
#include <leaf/base.h>

extern SpeedPair searchline(uint8_t sens, const SpeedPair *curSpeed);
extern void      searchline_reset(void);

extern void      searchline_set_kp(int8_t k);
extern void      searchline_set_kd(int8_t k);
extern void      searchline_set_adj_min( Bool v );
extern void      searchilne_set_max(int maxSpeed);
extern void      searchline_set_min(int minSpeed);
extern void      searchline_set_adjdiv(int);
extern int		 searchline_get_adjdiv(void);
extern int       searchline_get_max(void);
extern int       searchline_get_min(void);
extern int8_t    searchline_get_kp(void);
extern int8_t    searchline_get_kd(void);

#endif
